package org.mysocial.datamodel;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "reply")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public class Reply implements Serializable
{
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private long id;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "account_fk")
	public Account account;

	private Date time;

	public Account getAccount()
	{
		return account;
	}

	public long getId()
	{
		return id;
	}

	public Date getTime()
	{
		return time;
	}

	public void setAccount(Account account)
	{
		this.account = account;
	}

	public void setId(long id)
	{
		this.id = id;
	}

	public void setTime(Date time)
	{
		this.time = time;
	}

}
